{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>菜单列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->
            <div class="row">
                <div class="col-sm-12">
                    <form id="search-form" role="form" class="form-search form-inline" method="get" action="{:\\think\\Url::build('index')}">
                        <!-- 默认主键倒序排序 -->
                        <input type="hidden" name="_order" value="id">
                        <input type="hidden" name="_sort" value="desc">
                        <div class="form-group">
                            <div class="input-group">
                                {one:menu menu="add" /}
                            </div>
                        </div>
                        <!--
                        <div class="form-group">
                            <label for="username" class="sr-only">权限名称</label>
                            <input id="username" class="form-control" type="text" name="username" value="{$Request.param.username}" placeholder="权限名称"  >
                        </div>
                        <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> 搜索</button>
                        -->
                    </form>
                </div>
            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>
            <!--动态加载数据部分-->
            <div id="ajax_table" class="ajax_table">
                <div class="data-table table-responsive">
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr class="table-text-l">
                            <th><input type="checkbox" value="" name=""></th>
                            <th>ID</th>
                            <th>菜单名称</th>
                            <th>节点</th>
                            <th>状态</th>
                            <th>显示</th>
                            <th>排序</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {notempty name="list"}
                        {volist name="list" id="vo"}
                        <tr class="table-text-l">
                            <td><input type="checkbox" name="id[]" value="{$vo.id}"></td>
                            <td>{$vo.id}</td>
                            <td style="text-indent:{$vo.tree_level*30}px;">|---{$vo.title}</td>
                            <td>{$vo.name}</td>
                            <td>{$vo.status|get_status}</td>
                            <td>{$vo.type|get_status}</td>
                            <td>{$vo.sort}</td>
                            <td>
                                {one:menu menu='edit' url='edit:id=$vo.id' /}
                                {one:menu menu='delete' url='delete:id=$vo.id' /}
                            </td>
                        </tr>
                        {/volist}
                        {else /}
                        <tr class="table-text-c">
                            <td colspan="100"><i class="fa fa-info-circle"></i> 暂无数据</td>
                        </tr>
                        {/notempty}
                        </tbody>
                    </table>
                </div>
                <div class="text-right">共{$count}条数据，第1页，共1页</div>

            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
</body>
</html>
